#include<stdio.h>
#include<stdbool.h>

bool isPalindrome(int x);

int main()
{
	int a = 10;
	printf("test\n");
	printf("%d\n",isPalindrome(a));
}
bool isPalindrome(int x){
    if (x < 0)
    {
        return false;
    }
    if (x == 0)
    {
        return true;
    }
    long temp = 0;
    int ones;
    int xx = x;
    while(xx != 0)
    {
        ones = xx % 10;
        xx = xx / 10;
        temp = temp * 10 + ones;
    }
    if (temp == x)
    {
        return true;
    }
    else
    {
        return false;
    }
   
}